package com.lanou.activity.Service.impl;

import com.lanou.activity.Service.PlainSupService;
import com.lanou.activity.mapper.PlainSupMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class PlainSupServiceImpl implements PlainSupService{

    @Resource
    private PlainSupMapper plainSupMapper;


    /**
     * @description 根据prdNo连表查询信息
     * @author Lonely
     * @date 17/9/27
     * @return
     * @param
     */
    @Override
    public List<Map<String, Object>> findPlainInfoAll(List list) {
        return plainSupMapper.findPlainInfoAll(list);
    }

    /**
     * @description 根据prdNo连表查询信息
     * @author Lonely
     * @date 17/9/28
     * @return
     * @param
     */
    @Override
    public List<Map<String, Object>> findSaleCdnByConNo(List conNos) {
        return plainSupMapper.findSaleCdnByConNo(conNos);
    }

    /**
     * @description 根据conNo查询买赠信息
     * @author Lonely
     * @date 17/9/27
     * @return
     * @param
     */
    @Override
    public List<Map<String, Object>> findSLGFByConNo(String conNo) {
        return plainSupMapper.findSLGFByConNo(conNo);
    }


    /**
     * @description 根据conNo查询优惠信息表的数据
     * @author Lonely
     * @date 17/9/27
     * @return
     * @param
     */
    @Override
    public List<Map<String, Object>> findDiscountByConNo(String conNo,String conType) {
        return plainSupMapper.findDiscountByConNo(conNo,conType);
    }
}
